package com.vue.admin.service.common.mybatis.mapper;

import com.vue.admin.service.common.mybatis.provider.BaseDefDeleteProvider;
import org.apache.ibatis.annotations.DeleteProvider;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;

/**
 * @program: tk-robot-service
 * @description:
 * @author: zhangyangyang
 * @create: 2020-01-07 09:58
 **/
@RegisterMapper
public interface BaseDefDeleteListMapper<T,E> {
    @DeleteProvider(
            type = BaseDefDeleteProvider.class,
            method = "deleteListByPrimaryKey"
    )

    /**
     * 批量物理删除
     * @param ids
     * @param clazz
     * @return
     */
    int deleteListByPrimaryKey(List<E> ids, Class<T> clazz);
}
